package com.heima.comment.feign;

import com.heima.model.article.pojos.ApArticle;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("leadnews-article")
public interface ArticleFeign {
    @GetMapping("/api/v1/article/list/{AuthorId}")
    List<ApArticle> findArticleByAuthorId(@PathVariable("AuthorId") Long id);
}
